package com.navi.loaddata.core.oracleEntity.cell2;


import javax.persistence.*;
import java.util.Date;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL2_CHIP_HST_V", schema = "EDALDR", catalog = "")
@IdClass(EtlCell2ChipHstVPK.class)
public class EtlCell2ChipHstV {
    private String stepId;
    private String chipId;
    private Date chipEndTime;
    private Date chipStartTime;
    private String productId;
    private String productVersion;
    private String groupId;
    private String equipId;
    private String recipeId;
    private String chamberPath;
    private String chamberTime;
    private String taShift;
    private String runMode;
    private String ownerId;
    private String ownerType;
    private String lotType;
    private String cstId;
    private String slotNo;
    private String cstIdMoveIn;
    private String slotNoMoveIn;
    private String portIdMoveIn;
    private String portIdMoveOut;
    private String routeId;
    private String operatorId;
    private String mesLinkKry;
    private String panelSize;
    private String processFlg;
    private String samplingFlag;
    private String abnormalFlag;
    private String holdFlag;
    private String holdDept;
    private String qtapId;
    private String lotPriority;
//    private String glassGrade;
//    private String glassJudge;
    private String panelGrades;
    private String panelOxInfo;
    private String ngMark;
//    private Long panelQty;
//    private Long panelQtyGood;
    private String defectCode;
    private Long reworkCnt;
    private Long recycleCnt;
    private String engineerId;
    private String expNo;
    private String tecnId;
    private String maskId;
    private String mtrlPartNo;
    private String mtrlLotNo;
    private String arrayGlassId;
    private String cfGlassId;
    private String glassId;
    private String chipNo;

    @Id
    @Column(name = "STEP_ID")
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Id
    @Column(name = "CHIP_ID")
    public String getChipId() {
        return chipId;
    }

    public void setChipId(String chipId) {
        this.chipId = chipId;
    }

    @Id
    @Column(name = "CHIP_END_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getChipEndTime() {
        return chipEndTime;
    }

    public void setChipEndTime(Date chipEndTime) {
        this.chipEndTime = chipEndTime;
    }

    @Basic
    @Column(name = "CHIP_START_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getChipStartTime() {
        return chipStartTime;
    }

    public void setChipStartTime(Date chipStartTime) {
        this.chipStartTime = chipStartTime;
    }


    @Basic
    @Column(name = "PRODUCT_ID")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "PRODUCT_VERSION")
    public String getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(String productVersion) {
        this.productVersion = productVersion;
    }

    @Basic
    @Column(name = "GROUP_ID")
    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Basic
    @Column(name = "EQUIP_ID")
    public String getEquipId() {
        return equipId;
    }

    public void setEquipId(String equipId) {
        this.equipId = equipId;
    }

    @Basic
    @Column(name = "RECIPE_ID")
    public String getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    @Basic
    @Column(name = "CHAMBER_PATH")
    public String getChamberPath() {
        return chamberPath;
    }

    public void setChamberPath(String chamberPath) {
        this.chamberPath = chamberPath;
    }

    @Basic
    @Column(name = "CHAMBER_TIME")
    public String getChamberTime() {
        return chamberTime;
    }

    public void setChamberTime(String chamberTime) {
        this.chamberTime = chamberTime;
    }

    @Basic
    @Column(name = "TA_SHIFT")
    public String getTaShift() {
        return taShift;
    }

    public void setTaShift(String taShift) {
        this.taShift = taShift;
    }

    @Basic
    @Column(name = "RUN_MODE")
    public String getRunMode() {
        return runMode;
    }

    public void setRunMode(String runMode) {
        this.runMode = runMode;
    }

    @Basic
    @Column(name = "OWNER_ID")
    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    @Basic
    @Column(name = "OWNER_TYPE")
    public String getOwnerType() {
        return ownerType;
    }

    public void setOwnerType(String ownerType) {
        this.ownerType = ownerType;
    }

    @Basic
    @Column(name = "LOT_TYPE")
    public String getLotType() {
        return lotType;
    }

    public void setLotType(String lotType) {
        this.lotType = lotType;
    }

    @Basic
    @Column(name = "CST_ID")
    public String getCstId() {
        return cstId;
    }

    public void setCstId(String cstId) {
        this.cstId = cstId;
    }

    @Basic
    @Column(name = "SLOT_NO")
    public String getSlotNo() {
        return slotNo;
    }

    public void setSlotNo(String slotNo) {
        this.slotNo = slotNo;
    }

    @Basic
    @Column(name = "CST_ID_MOVE_IN")
    public String getCstIdMoveIn() {
        return cstIdMoveIn;
    }

    public void setCstIdMoveIn(String cstIdMoveIn) {
        this.cstIdMoveIn = cstIdMoveIn;
    }

    @Basic
    @Column(name = "SLOT_NO_MOVE_IN")
    public String getSlotNoMoveIn() {
        return slotNoMoveIn;
    }

    public void setSlotNoMoveIn(String slotNoMoveIn) {
        this.slotNoMoveIn = slotNoMoveIn;
    }

    @Basic
    @Column(name = "PORT_ID_MOVE_IN")
    public String getPortIdMoveIn() {
        return portIdMoveIn;
    }

    public void setPortIdMoveIn(String portIdMoveIn) {
        this.portIdMoveIn = portIdMoveIn;
    }

    @Basic
    @Column(name = "PORT_ID_MOVE_OUT")
    public String getPortIdMoveOut() {
        return portIdMoveOut;
    }

    public void setPortIdMoveOut(String portIdMoveOut) {
        this.portIdMoveOut = portIdMoveOut;
    }

    @Basic
    @Column(name = "ROUTE_ID")
    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    @Basic
    @Column(name = "OPERATOR_ID")
    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    @Id
    @Column(name = "MES_LINK_KRY")
    public String getMesLinkKry() {
        return mesLinkKry;
    }

    public void setMesLinkKry(String mesLinkKry) {
        this.mesLinkKry = mesLinkKry;
    }

    @Basic
    @Column(name = "PANEL_SIZE")
    public String getPanelSize() {
        return panelSize;
    }

    public void setPanelSize(String panelSize) {
        this.panelSize = panelSize;
    }

    @Basic
    @Column(name = "PROCESS_FLG")
    public String getProcessFlg() {
        return processFlg;
    }

    public void setProcessFlg(String processFlg) {
        this.processFlg = processFlg;
    }

    @Basic
    @Column(name = "SAMPLING_FLAG")
    public String getSamplingFlag() {
        return samplingFlag;
    }

    public void setSamplingFlag(String samplingFlag) {
        this.samplingFlag = samplingFlag;
    }

    @Basic
    @Column(name = "ABNORMAL_FLAG")
    public String getAbnormalFlag() {
        return abnormalFlag;
    }

    public void setAbnormalFlag(String abnormalFlag) {
        this.abnormalFlag = abnormalFlag;
    }

    @Basic
    @Column(name = "HOLD_FLAG")
    public String getHoldFlag() {
        return holdFlag;
    }

    public void setHoldFlag(String holdFlag) {
        this.holdFlag = holdFlag;
    }

    @Basic
    @Column(name = "HOLD_DEPT")
    public String getHoldDept() {
        return holdDept;
    }

    public void setHoldDept(String holdDept) {
        this.holdDept = holdDept;
    }

    @Basic
    @Column(name = "QTAP_ID")
    public String getQtapId() {
        return qtapId;
    }

    public void setQtapId(String qtapId) {
        this.qtapId = qtapId;
    }

    @Basic
    @Column(name = "LOT_PRIORITY")
    public String getLotPriority() {
        return lotPriority;
    }

    public void setLotPriority(String lotPriority) {
        this.lotPriority = lotPriority;
    }

//    @Basic
//    @Column(name = "GLASS_GRADE")
//    public String getGlassGrade() {
//        return glassGrade;
//    }
//
//    public void setGlassGrade(String glassGrade) {
//        this.glassGrade = glassGrade;
//    }
//
//    @Basic
//    @Column(name = "GLASS_JUDGE")
//    public String getGlassJudge() {
//        return glassJudge;
//    }
//
//    public void setGlassJudge(String glassJudge) {
//        this.glassJudge = glassJudge;
//    }

    @Basic
    @Column(name = "PANEL_GRADES")
    public String getPanelGrades() {
        return panelGrades;
    }

    public void setPanelGrades(String panelGrades) {
        this.panelGrades = panelGrades;
    }

    @Basic
    @Column(name = "PANEL_OX_INFO")
    public String getPanelOxInfo() {
        return panelOxInfo;
    }

    public void setPanelOxInfo(String panelOxInfo) {
        this.panelOxInfo = panelOxInfo;
    }

    @Basic
    @Column(name = "NG_MARK")
    public String getNgMark() {
        return ngMark;
    }

    public void setNgMark(String ngMark) {
        this.ngMark = ngMark;
    }

//    @Basic
//    @Column(name = "PANEL_QTY")
//    public Long getPanelQty() {
//        return panelQty;
//    }
//
//    public void setPanelQty(Long panelQty) {
//        this.panelQty = panelQty;
//    }

//    @Basic
//    @Column(name = "PANEL_QTY_GOOD")
//    public Long getPanelQtyGood() {
//        return panelQtyGood;
//    }
//
//    public void setPanelQtyGood(Long panelQtyGood) {
//        this.panelQtyGood = panelQtyGood;
//    }

    @Basic
    @Column(name = "DEFECT_CODE")
    public String getDefectCode() {
        return defectCode;
    }

    public void setDefectCode(String defectCode) {
        this.defectCode = defectCode;
    }

    @Basic
    @Column(name = "REWORK_CNT")
    public Long getReworkCnt() {
        return reworkCnt;
    }

    public void setReworkCnt(Long reworkCnt) {
        this.reworkCnt = reworkCnt;
    }

    @Basic
    @Column(name = "RECYCLE_CNT")
    public Long getRecycleCnt() {
        return recycleCnt;
    }

    public void setRecycleCnt(Long recycleCnt) {
        this.recycleCnt = recycleCnt;
    }

    @Basic
    @Column(name = "ENGINEER_ID")
    public String getEngineerId() {
        return engineerId;
    }

    public void setEngineerId(String engineerId) {
        this.engineerId = engineerId;
    }

    @Basic
    @Column(name = "EXP_NO")
    public String getExpNo() {
        return expNo;
    }

    public void setExpNo(String expNo) {
        this.expNo = expNo;
    }

    @Basic
    @Column(name = "TECN_ID")
    public String getTecnId() {
        return tecnId;
    }

    public void setTecnId(String tecnId) {
        this.tecnId = tecnId;
    }

    @Basic
    @Column(name = "MASK_ID")
    public String getMaskId() {
        return maskId;
    }

    public void setMaskId(String maskId) {
        this.maskId = maskId;
    }

    @Basic
    @Column(name = "MTRL_PART_NO")
    public String getMtrlPartNo() {
        return mtrlPartNo;
    }

    public void setMtrlPartNo(String mtrlPartNo) {
        this.mtrlPartNo = mtrlPartNo;
    }

    @Basic
    @Column(name = "MTRL_LOT_NO")
    public String getMtrlLotNo() {
        return mtrlLotNo;
    }

    public void setMtrlLotNo(String mtrlLotNo) {
        this.mtrlLotNo = mtrlLotNo;
    }

    @Basic
    @Column(name = "ARRAY_GLASS_ID")
    public String getArrayGlassId() {
        return arrayGlassId;
    }

    public void setArrayGlassId(String arrayGlassId) {
        this.arrayGlassId = arrayGlassId;
    }

    @Basic
    @Column(name = "CF_GLASS_ID")
    public String getCfGlassId() {
        return cfGlassId;
    }

    public void setCfGlassId(String cfGlassId) {
        this.cfGlassId = cfGlassId;
    }

    @Basic
    @Column(name = "GLASS_ID")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Basic
    @Column(name = "CHIP_NO")
    public String getChipNo() {
        return chipNo;
    }

    public void setChipNo(String chipNo) {
        this.chipNo = chipNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCell2ChipHstV that = (EtlCell2ChipHstV) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (chipId != null ? !chipId.equals(that.chipId) : that.chipId != null) return false;
        if (chipEndTime != null ? !chipEndTime.equals(that.chipEndTime) : that.chipEndTime != null)
            return false;
        if (chipStartTime != null ? !chipStartTime.equals(that.chipStartTime) : that.chipStartTime != null)
            return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productVersion != null ? !productVersion.equals(that.productVersion) : that.productVersion != null)
            return false;
        if (groupId != null ? !groupId.equals(that.groupId) : that.groupId != null) return false;
        if (equipId != null ? !equipId.equals(that.equipId) : that.equipId != null) return false;
        if (recipeId != null ? !recipeId.equals(that.recipeId) : that.recipeId != null) return false;
        if (chamberPath != null ? !chamberPath.equals(that.chamberPath) : that.chamberPath != null) return false;
        if (chamberTime != null ? !chamberTime.equals(that.chamberTime) : that.chamberTime != null) return false;
        if (taShift != null ? !taShift.equals(that.taShift) : that.taShift != null) return false;
        if (runMode != null ? !runMode.equals(that.runMode) : that.runMode != null) return false;
        if (ownerId != null ? !ownerId.equals(that.ownerId) : that.ownerId != null) return false;
        if (ownerType != null ? !ownerType.equals(that.ownerType) : that.ownerType != null) return false;
        if (lotType != null ? !lotType.equals(that.lotType) : that.lotType != null) return false;
        if (cstId != null ? !cstId.equals(that.cstId) : that.cstId != null) return false;
        if (slotNo != null ? !slotNo.equals(that.slotNo) : that.slotNo != null) return false;
        if (cstIdMoveIn != null ? !cstIdMoveIn.equals(that.cstIdMoveIn) : that.cstIdMoveIn != null) return false;
        if (slotNoMoveIn != null ? !slotNoMoveIn.equals(that.slotNoMoveIn) : that.slotNoMoveIn != null) return false;
        if (portIdMoveIn != null ? !portIdMoveIn.equals(that.portIdMoveIn) : that.portIdMoveIn != null) return false;
        if (portIdMoveOut != null ? !portIdMoveOut.equals(that.portIdMoveOut) : that.portIdMoveOut != null)
            return false;
        if (routeId != null ? !routeId.equals(that.routeId) : that.routeId != null) return false;
        if (operatorId != null ? !operatorId.equals(that.operatorId) : that.operatorId != null) return false;
        if (mesLinkKry != null ? !mesLinkKry.equals(that.mesLinkKry) : that.mesLinkKry != null) return false;
        if (panelSize != null ? !panelSize.equals(that.panelSize) : that.panelSize != null) return false;
        if (processFlg != null ? !processFlg.equals(that.processFlg) : that.processFlg != null) return false;
        if (samplingFlag != null ? !samplingFlag.equals(that.samplingFlag) : that.samplingFlag != null) return false;
        if (abnormalFlag != null ? !abnormalFlag.equals(that.abnormalFlag) : that.abnormalFlag != null) return false;
        if (holdFlag != null ? !holdFlag.equals(that.holdFlag) : that.holdFlag != null) return false;
        if (holdDept != null ? !holdDept.equals(that.holdDept) : that.holdDept != null) return false;
        if (qtapId != null ? !qtapId.equals(that.qtapId) : that.qtapId != null) return false;
        if (lotPriority != null ? !lotPriority.equals(that.lotPriority) : that.lotPriority != null) return false;
//        if (glassGrade != null ? !glassGrade.equals(that.glassGrade) : that.glassGrade != null) return false;
//        if (glassJudge != null ? !glassJudge.equals(that.glassJudge) : that.glassJudge != null) return false;
        if (panelGrades != null ? !panelGrades.equals(that.panelGrades) : that.panelGrades != null) return false;
        if (panelOxInfo != null ? !panelOxInfo.equals(that.panelOxInfo) : that.panelOxInfo != null) return false;
        if (ngMark != null ? !ngMark.equals(that.ngMark) : that.ngMark != null) return false;
//        if (panelQty != null ? !panelQty.equals(that.panelQty) : that.panelQty != null) return false;
//        if (panelQtyGood != null ? !panelQtyGood.equals(that.panelQtyGood) : that.panelQtyGood != null) return false;
        if (defectCode != null ? !defectCode.equals(that.defectCode) : that.defectCode != null) return false;
        if (reworkCnt != null ? !reworkCnt.equals(that.reworkCnt) : that.reworkCnt != null) return false;
        if (recycleCnt != null ? !recycleCnt.equals(that.recycleCnt) : that.recycleCnt != null) return false;
        if (engineerId != null ? !engineerId.equals(that.engineerId) : that.engineerId != null) return false;
        if (expNo != null ? !expNo.equals(that.expNo) : that.expNo != null) return false;
        if (tecnId != null ? !tecnId.equals(that.tecnId) : that.tecnId != null) return false;
        if (maskId != null ? !maskId.equals(that.maskId) : that.maskId != null) return false;
        if (mtrlPartNo != null ? !mtrlPartNo.equals(that.mtrlPartNo) : that.mtrlPartNo != null) return false;
        if (mtrlLotNo != null ? !mtrlLotNo.equals(that.mtrlLotNo) : that.mtrlLotNo != null) return false;
        if (arrayGlassId != null ? !arrayGlassId.equals(that.arrayGlassId) : that.arrayGlassId != null) return false;
        if (cfGlassId != null ? !cfGlassId.equals(that.cfGlassId) : that.cfGlassId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (chipNo != null ? !chipNo.equals(that.chipNo) : that.chipNo != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (chipId != null ? chipId.hashCode() : 0);
        result = 31 * result + (chipEndTime != null ? chipEndTime.hashCode() : 0);
        result = 31 * result + (chipStartTime != null ? chipStartTime.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (productVersion != null ? productVersion.hashCode() : 0);
        result = 31 * result + (groupId != null ? groupId.hashCode() : 0);
        result = 31 * result + (equipId != null ? equipId.hashCode() : 0);
        result = 31 * result + (recipeId != null ? recipeId.hashCode() : 0);
        result = 31 * result + (chamberPath != null ? chamberPath.hashCode() : 0);
        result = 31 * result + (chamberTime != null ? chamberTime.hashCode() : 0);
        result = 31 * result + (taShift != null ? taShift.hashCode() : 0);
        result = 31 * result + (runMode != null ? runMode.hashCode() : 0);
        result = 31 * result + (ownerId != null ? ownerId.hashCode() : 0);
        result = 31 * result + (ownerType != null ? ownerType.hashCode() : 0);
        result = 31 * result + (lotType != null ? lotType.hashCode() : 0);
        result = 31 * result + (cstId != null ? cstId.hashCode() : 0);
        result = 31 * result + (slotNo != null ? slotNo.hashCode() : 0);
        result = 31 * result + (cstIdMoveIn != null ? cstIdMoveIn.hashCode() : 0);
        result = 31 * result + (slotNoMoveIn != null ? slotNoMoveIn.hashCode() : 0);
        result = 31 * result + (portIdMoveIn != null ? portIdMoveIn.hashCode() : 0);
        result = 31 * result + (portIdMoveOut != null ? portIdMoveOut.hashCode() : 0);
        result = 31 * result + (routeId != null ? routeId.hashCode() : 0);
        result = 31 * result + (operatorId != null ? operatorId.hashCode() : 0);
        result = 31 * result + (mesLinkKry != null ? mesLinkKry.hashCode() : 0);
        result = 31 * result + (panelSize != null ? panelSize.hashCode() : 0);
        result = 31 * result + (processFlg != null ? processFlg.hashCode() : 0);
        result = 31 * result + (samplingFlag != null ? samplingFlag.hashCode() : 0);
        result = 31 * result + (abnormalFlag != null ? abnormalFlag.hashCode() : 0);
        result = 31 * result + (holdFlag != null ? holdFlag.hashCode() : 0);
        result = 31 * result + (holdDept != null ? holdDept.hashCode() : 0);
        result = 31 * result + (qtapId != null ? qtapId.hashCode() : 0);
        result = 31 * result + (lotPriority != null ? lotPriority.hashCode() : 0);
//        result = 31 * result + (glassGrade != null ? glassGrade.hashCode() : 0);
//        result = 31 * result + (glassJudge != null ? glassJudge.hashCode() : 0);
        result = 31 * result + (panelGrades != null ? panelGrades.hashCode() : 0);
        result = 31 * result + (panelOxInfo != null ? panelOxInfo.hashCode() : 0);
        result = 31 * result + (ngMark != null ? ngMark.hashCode() : 0);
//        result = 31 * result + (panelQty != null ? panelQty.hashCode() : 0);
//        result = 31 * result + (panelQtyGood != null ? panelQtyGood.hashCode() : 0);
        result = 31 * result + (defectCode != null ? defectCode.hashCode() : 0);
        result = 31 * result + (reworkCnt != null ? reworkCnt.hashCode() : 0);
        result = 31 * result + (recycleCnt != null ? recycleCnt.hashCode() : 0);
        result = 31 * result + (engineerId != null ? engineerId.hashCode() : 0);
        result = 31 * result + (expNo != null ? expNo.hashCode() : 0);
        result = 31 * result + (tecnId != null ? tecnId.hashCode() : 0);
        result = 31 * result + (maskId != null ? maskId.hashCode() : 0);
        result = 31 * result + (mtrlPartNo != null ? mtrlPartNo.hashCode() : 0);
        result = 31 * result + (mtrlLotNo != null ? mtrlLotNo.hashCode() : 0);
        result = 31 * result + (arrayGlassId != null ? arrayGlassId.hashCode() : 0);
        result = 31 * result + (cfGlassId != null ? cfGlassId.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (chipNo != null ? chipNo.hashCode() : 0);
        return result;
    }
}
